﻿using EasyComm.ServiceUnit;

namespace EasyComm.SDK
{
    public delegate void AdminServiceEventHandler<TContract>(AdminServiceEventArgs<TContract> e) where TContract : class;

    public class AdminServiceEventArgs<TContract> where TContract : class
    {
        public AdminServiceUnit<TContract> Unit { get; private set; }
        public ServiceAvailabilityType AvailabilityType { get; private set; }

        public AdminServiceEventArgs(AdminServiceUnit<TContract> unit, ServiceAvailabilityType availabilityType)
        {
            Unit = unit;
            AvailabilityType = availabilityType;
        }
    }
}
